int add_lightmap(int sx,int sy)
Parameter | Type | Description |
---|---|---|
sx | int | x light map size (power of 2) |
sy | int | y light map size (power of 2 |
Return the light map index into the light map array for the newly cretated light map.
This function is used add a new light map to the light map array. Dynamic objects that can use light maps use this function to allocate its light map image.